package com.mc.moring.util;

import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.mc.moring.R;

import java.io.File;


/**
 * Created by Administrator on 2016/12/28 0028.
 */

public class ImageUtil {

    public static final String TAG = ImageUtil.class.getName();


    public static void loadErrorImageView(int path, ImageView mImageView) {
        Glide.with(mImageView.getContext()).load(path).error(R.mipmap.logo).into(mImageView);
    }

    public static void loadErrorImageView(File path, ImageView mImageView) {
        Glide.with(mImageView.getContext()).load(path).error(R.mipmap.logo).into(mImageView);
    }

    public static void loadErrorImageView(String path, ImageView mImageView) {
        Glide.with(mImageView.getContext()).load(path).error(R.mipmap.logo).into(mImageView);
    }

}
